/**
 * 
 */
package hr.fer.zemris.annotator.model.profiling;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;

import hr.fer.zemris.annotator.model.Method;

/**
 * @author dajan
 * 
 */
public class CallGraphData {

	private String methodCallGraph;

	// private Method method;

	public CallGraphData(String methodCallGraph) {
		super();
		this.methodCallGraph = methodCallGraph;
	}
	
	public boolean isIndex(String index){
		
		String[] arrayTest = methodCallGraph.split("#");
		
		for(int i = 0; i < arrayTest.length; i++){
			if(arrayTest[i].startsWith(index)){
				return true;
			}
		}
		
		return false;
		
	}
	
	@Override
	public String toString() {
		
		return this.methodCallGraph;
	}

}
